/* 全局样式文件 */

@use './element-variables.scss';
@use 'element-plus/theme-chalk/src/index.scss';
// 全局样式
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

// Element Plus 组件样式调整
.el-button + .el-button {
  margin-left: 12px;
}

.el-form-item {
  margin-bottom: 18px;
}

.el-card {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e6ebf5;
}

.el-table {
  border-radius: 8px;
}

.el-dialog {
  border-radius: 12px;
}

.el-menu {
  border-right: none;
}

.el-menu-item,
.el-sub-menu__title {
  height: 48px;
  line-height: 48px;
}

// 管理后台特定样式
.admin-main {
  padding: 0;
}

.page-container {
  margin: 24px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

// 响应式设计
@media (max-width: 768px) {
  .el-button + .el-button {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .page-container {
    margin: 16px;
  }
}